package com.fowo.api.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_message")
@Schema(title = "系统消息")
public class SysMessage implements Serializable {
    public static final String TYPE_NOTIFICATION = "notification";
    public static final String TYPE_MESSAGE = "message";
    public static final String TYPE_EVENT = "event";

    public static final String STATUS_TODO = "todo";
    public static final String STATUS_PROCESSING = "processing";
    public static final String STATUS_URGENT = "urgent";
    public static final String STATUS_DOING = "doing";

    /**
     * 主键编号
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String title;

    private String type;

    private String status;

    private String content;

    private String link;

    private Long createUserId;

    private Date createTime;

    @TableLogic
    private Boolean delFlag;
}
